package com.happe.foodeasy.common;

import com.happe.foodeasy.constraint.annotation.IdCustom;
import com.happe.foodeasy.helper.annotation.FatherEntity;

import java.util.Date;

@FatherEntity
public class CommonInfoEntity {
    @IdCustom
    private long id;
    private Date createTime;
    private Date updateTime;
    private boolean validityFlag;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public boolean isValidityFlag() {
        return validityFlag;
    }

    public void setValidityFlag(boolean validityFlag) {
        this.validityFlag = validityFlag;
    }
}
